class WorldThingy():
    """
    WorldThingy is the basic data structure for anything in the world
    """

    def __init__(self):
        self.spam={}
        #this is the list of attributes objects will have
        self.atList=["name","description","actions"]
 
    def create(self):
        """
        this is for interactive setup of WorldThingy data structure
        """

        for attribute in self.atList:
            if attribute=="actions": 
                
               reply=raw_input("add an action(0 to stop): ")
               if reply!="0":
                   self.spam[attribute]=[]
               
               while reply!="0":
                   self.spam[attribute].append(reply)
                   reply=raw_input("add an action(0 to stop): ")
                   
            else:       
                self.spam[attribute]=raw_input("%s: "% attribute)

           

coop=WorldThingy()
coop.create()
print coop.spam




   
